]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
location: Rename _onGeoclueAppeared to _connectToGeoclue
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sat, 15 Feb 2014 13:58:06 +0000 (13:58 +0000)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sat, 15 Feb 2014 17:41:26 +0000 (17:41 +0000)
Rename _onGeoclueAppeared to _connectToGeoclue as in the following patch
we'll call it from other contexts then geoclue appearing.

https://bugzilla.gnome.org/show_bug.cgi?id=723684

js/ui/status/location.js

index 793e5a0b8958879c8f99e0071b20aa4c79496182..bc42a4e1d4d65835c7d1f2811162003e1a90d29c 100644 (file)
@@ -27,7 +27,7 @@ const Indicator = new Lang.Class({
         this._watchId = Gio.bus_watch_name(Gio.BusType.SYSTEM,
                                            'org.freedesktop.GeoClue2',
                                            0,
-                                           Lang.bind(this, this._onGeoclueAppeared),
+                                           Lang.bind(this, this._connectToGeoclue),
                                            Lang.bind(this, this._onGeoclueVanished));
     },
 
@@ -40,7 +40,7 @@ const Indicator = new Lang.Class({
         this._indicator.visible = this._proxy.InUse;
     },
 
-    _onGeoclueAppeared: function() {
+    _connectToGeoclue: function() {
         new GeoclueManager(Gio.DBus.system,
                            'org.freedesktop.GeoClue2',
                            '/org/freedesktop/GeoClue2/Manager',